<%--
  Created by IntelliJ IDEA.
  tip: lichengming
  Date: 2017/6/15
  Time: 下午12:11
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>


<!DOCTYPE html>
<html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>提示语管理</title>

    <script type="text/javascript">
        function tipSave() {
            var result = false;
            $.emsAjax({
                url:"/ems/tip/save",
                data:{
                    code:$("#code").val(),
                    tip:$("#tip").val(),
                    id:"${tip.id}"
                },
                success:function(resp) {
                    if (resp.status == "000") {
                        result = true;
                        $.alert(resp.message);
                    }else $.errorAlert(resp.message);
                }
            });
            return result;
        }
    </script>
</head>
<body>
<form class="form-horizontal">

    <div class="form-group">
        <label for="code" class="col-sm-3 control-label">编号：</label>
        <div class="col-sm-8">
            <input type="text" class="form-control"
                   id="code" value="${tip.code}" placeholder="请输入编号，编号必须唯一" />
        </div>
    </div>

    <div class="form-group">
        <label for="tip" class="col-sm-3 control-label">提示语：</label>
        <div class="col-sm-8">
            <textarea class="form-control" rows="3" id="tip" placeholder="请输入提示语，如需要变量替换，则使用#占位符">${tip.tip}</textarea>
        </div>
    </div>
</form>
</body>
</html>